<?php
include 'session.php';
require 'free.php';

mysql_connect('localhost', 'root');
mysql_select_db('dots');

$userID = $_SESSION['userID'];

$query = "UPDATE requests SET guestID=NULL WHERE guestID=$userID";
mysql_query($query);

header('location:../requests.php');
?>